//
//  ActiveAiExt.swift
//  imprint
//
//  Created by 小柠檬🍋 on 2025/3/12.
//

import Foundation
class ActiveAiExt {
    
    //检查所有的ai回应
    static func checkActive() {
        checkDiary()
        checkChat()
        checkComment()
        checkMemory()
    }
    
    static func checkDiary() {
        ActiveDiaryReplyExt.instance.checkDiary()
    }
    
    static func checkChat() {
        ActiveChatExt.instance.checkChat() //检查聊天
    }
    
    static func checkComment() {
        ActiveAICommentExt.instance.checkComment()
    }
    
    static func checkMemory() {
        ActiveAIMemoryExt.instance.checkAIMemory()
        ActiveAIMemoryExt.instance.doMemoryStr()
    }
    
    //强制回应
    static func doAiReply(_ diaryBean: DiaryBean,_ aiRoleId: String) {
        ActiveDiaryReplyExt.instance.doAiReply(diaryBean, aiRoleId, true)
    }
}
